from selenium import webdriver
import random

#浏览器代理
driver = webdriver.Chrome()

#目标问卷地址
driver.get('https://www.wjx.cn/')
answers = driver.find_elements_by_css_selector('.ui-controlgroup')
for answer in answers:
        ####先滑到标签再去点击
    driver.execute_script("arguments[0].scrollIntoView();",answer)
        ### 找到标签
    ans=answer.find_elements_by_css_selector('a')
    lsans=random.choice(ans)
    lsans.click()
am = driver.find_element_by_css_selector('#divSubmit')
am.click()
driver.quit()